package com.example.springcloudclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloWorld {

    @Value("${server.port}")//服务端口号
    String port;

    @GetMapping("/hello")
    public String getString(){
        return "hello world , i'm from "+port;
    }
}
